package com.ftg.learn.chapter08.homework;

/**
 *
 * 4.声明公民类Citizen，包含属性：姓名，生日，身份证号，
 * 其中姓名是String类型，
 * 生日是MyDate类型，身份证号也是String类型。声明Test03测试类，
 * 在main方法中创建你们家庭成员的几个对象，并打印信息。
 *
 * 1 ： 找对象 （状态 行为）
 * 公民类
 *   姓名，生日，身份证号,生日
 *   并打印信息 info();
 * 2 ： 关系
 * 3 : 原则 与模式 业务
 * @author kangjx
 * @createTime 2023/1/10
 */
public class Play {

    public static void main(String[] args) {
        Citizen parent = new Citizen("张三","23232322",new MyDate("2009","09","09"));
        Citizen mother = new Citizen("李四","23232322",new MyDate("2009","09","09"));
        Citizen son1 = new Citizen("张三1","23232322",new MyDate("2009","09","09"));
        Citizen son2 = new Citizen("张三2","23232322",new MyDate("2009","09","09"));
        Citizen son3 = new Citizen("张三3","23232322",new MyDate("2009","09","09"));

        System.out.println(parent);
        System.out.println(mother);
        System.out.println(son1);
        System.out.println(son2);
        System.out.println(son3);
    }

}
